// - l'instruction while (condition) {instructions} // - attention aux conditions (limites) // - attention au compteur // - expliquer le passage des arguments borneInf & borneSup // - indiquer les intructions à utiliser : %, ||, &&, les () autour des // conditions, les {} pour les blocs. public class Pair{ public static void main(String[] args) { int borneInf = Integer.parseInt(args[0]); int borneSup = Integer.parseInt(args[1]); if ((borneInf <= 0) || (borneSup > 50) || (borneInf > borneSup) ) System.err.println("On demandait des bornes entre 1 et 50 et une borne inferieure plus petite que la borne superieure."); else { if (borneSup%2!=0) borneSup = borneSup-1; while (borneSup>borneInf) { System.out.println(borneSup); borneSup=borneSup-2; } } } }